package com.fhz.kotlinmvvm.entity

/**
 * 时间:2023/9/14
 * @author Mr.Feng
 * 简述: 封装的统一返回接口
 */
data class ResponseApi<T>(
    val code: Int,
    val `data`: Data<T>,
    val msg: String
)

data class Data<T>(
    val endRow: Int,
    val hasNextPage: Boolean,
    val hasPreviousPage: Boolean,
    val isFirstPage: Boolean,
    val isLastPage: Boolean,
    val list: List<T>,
    val navigateFirstPage: Int,
    val navigateLastPage: Int,
    val navigatePages: Int,
    val navigatepageNums: List<Int>,
    val nextPage: Int,
    val pageNum: Int,
    val pageSize: Int,
    val pages: Int,
    val prePage: Int,
    val size: Int,
    val startRow: Int,
    val total: Int
)

